//
//  StockTableController.h
//  iStock Global
//
//  Created by Andy on 2010/10/1.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "addWatchList.h"
#import "StockTableQuote.h"

@interface StockTableController : UITableViewController<addWatchListDelgete,StockTableQuoteDelgete> {
	
	UITableView *myTable;
	 
    UINavigationController *navdelegete;	
	NSString *almarket;
	
	//資料庫取用
	NSMutableArray *code_array;	 
	NSMutableArray *name_array;
    NSMutableArray *class_array; //分類 產業分類用於自選股群組
	NSMutableArray *id_class_array; //分類 產業分類用於最佳化	
 
	
	NSMutableArray *classd; //獨立產業分類表

	 //表格分類用    
    NSMutableArray *sectionArray;	
	NSMutableArray *code_sarray;	 
	NSMutableArray *name_sarray;
    NSMutableArray *class_sarray; //分類
	NSMutableArray *id_class_sarray; //分類	
    UIBarButtonItem *plusButton	;
	
    id AppleDeglate;
    BOOL WillSaveFirstWatchlist;
    
}
@property(assign) id AppleDeglate;

-(void)first_save_watchlist;
-(void)initTitle:(NSString *) bartitle;
-(void)initImage:(UIImage*) image;
-(void)get_navcontroller:(UINavigationController *)nd;
-(void)datasql;
-(void)addWatchList;
-(void)SaveGroupName;
-(void)Realese_Menory;


NSInteger comparator_TableTitle(NSString *d1, NSString *d2, void *context );

@end
